package cn.decorator;

/**
 * Created by jt on 2018/3/19.
 */
public class Test {
    public static void main(String[] args) {

        ICooking cooking = new CookingImpl() ;

        cooking = new Pepper(cooking) ;

        cooking = new Solt(cooking) ;
        cooking.vegetables();

    }
}
